<!--HEADER BEGIN-->
<?php $this->load->view('admin/admin_header');?>
<!--HEADER END-->
<div id="header"><div class="logo"></div></div>
<div id="body-bg-bar">
	<div class="bg-box-login">
		
			<div class="login-form">
			
				<!--MESSAGE BEGIN-->
				<?php if($this->session->flashdata('error')):?>
				<p class='error'>
					<?php echo $this->session->flashdata('error');?>
				</p>
				<?php endif;?>
				<!--MESSAGE END-->
				
				<!--FORM BEGIN-->
				<?php echo form_open(base_url() . 'admin_user/login', 'id="form" name="form"');?>
				
					<ul>
						<li>
							<label>Email Address</label><br/>
							<?php echo form_input('user_email', set_value('user_email'), 'class="inputbox"');?>
							<?php echo form_error('user_email');?>
						</li>
						<li>
							<label>Password</label><br/>
							<?php echo form_password('user_password','', 'class="inputbox"');?>
							<?php echo form_error('user_password');?>
						</li>
						<li>
							<div style="margin-top:50px;">
							<input type="checkbox" name="remember" id="remember"/><label for="remember" style="left: 10px;position: relative;top: -2px;">Remember me!</label>
							<div class="buttonForm"><a class="button" href="javascript: void(0);" onclick="javascript: document.getElementById('form').submit();"><span>Login</span></a></div>
                                                        <?php echo form_hidden('return', 'admin');?>
							</div>
						</li>
					</ul>
				
				<?php echo form_close();?>
				<!--FROM END-->
			</div>
	
	</div>
</div>
<!--FOOTER BEGIN-->
<?php $this->load->view('admin/admin_footer');?>
<!--FOOTER END-->